/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.cmc.service.merchant.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link MerchantEntry}.
 * </p>
 *
 * @author    ntcuong1
 * @see       MerchantEntry
 * @generated
 */
public class MerchantEntryWrapper implements MerchantEntry,
	ModelWrapper<MerchantEntry> {
	public MerchantEntryWrapper(MerchantEntry merchantEntry) {
		_merchantEntry = merchantEntry;
	}

	public Class<?> getModelClass() {
		return MerchantEntry.class;
	}

	public String getModelClassName() {
		return MerchantEntry.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("merchantId", getMerchantId());
		attributes.put("companyId", getCompanyId());
		attributes.put("creatorUserId", getCreatorUserId());
		attributes.put("createDate", getCreateDate());
		attributes.put("modifiedDate", getModifiedDate());
		attributes.put("type", getType());
		attributes.put("code", getCode());
		attributes.put("title", getTitle());
		attributes.put("description", getDescription());
		attributes.put("organization", getOrganization());
		attributes.put("organizationId", getOrganizationId());
		attributes.put("organizationType", getOrganizationType());
		attributes.put("organizationStatus", getOrganizationStatus());
		attributes.put("sites", getSites());
		attributes.put("recursable", getRecursable());
		attributes.put("countryId", getCountryId());
		attributes.put("regionId", getRegionId());
		attributes.put("longitude", getLongitude());
		attributes.put("latitude", getLatitude());
		attributes.put("parentId", getParentId());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long merchantId = (Long)attributes.get("merchantId");

		if (merchantId != null) {
			setMerchantId(merchantId);
		}

		Long companyId = (Long)attributes.get("companyId");

		if (companyId != null) {
			setCompanyId(companyId);
		}

		Long creatorUserId = (Long)attributes.get("creatorUserId");

		if (creatorUserId != null) {
			setCreatorUserId(creatorUserId);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Date modifiedDate = (Date)attributes.get("modifiedDate");

		if (modifiedDate != null) {
			setModifiedDate(modifiedDate);
		}

		String type = (String)attributes.get("type");

		if (type != null) {
			setType(type);
		}

		String code = (String)attributes.get("code");

		if (code != null) {
			setCode(code);
		}

		String title = (String)attributes.get("title");

		if (title != null) {
			setTitle(title);
		}

		String description = (String)attributes.get("description");

		if (description != null) {
			setDescription(description);
		}

		Boolean organization = (Boolean)attributes.get("organization");

		if (organization != null) {
			setOrganization(organization);
		}

		Long organizationId = (Long)attributes.get("organizationId");

		if (organizationId != null) {
			setOrganizationId(organizationId);
		}

		String organizationType = (String)attributes.get("organizationType");

		if (organizationType != null) {
			setOrganizationType(organizationType);
		}

		Integer organizationStatus = (Integer)attributes.get(
				"organizationStatus");

		if (organizationStatus != null) {
			setOrganizationStatus(organizationStatus);
		}

		Boolean sites = (Boolean)attributes.get("sites");

		if (sites != null) {
			setSites(sites);
		}

		Boolean recursable = (Boolean)attributes.get("recursable");

		if (recursable != null) {
			setRecursable(recursable);
		}

		Long countryId = (Long)attributes.get("countryId");

		if (countryId != null) {
			setCountryId(countryId);
		}

		Long regionId = (Long)attributes.get("regionId");

		if (regionId != null) {
			setRegionId(regionId);
		}

		Double longitude = (Double)attributes.get("longitude");

		if (longitude != null) {
			setLongitude(longitude);
		}

		Double latitude = (Double)attributes.get("latitude");

		if (latitude != null) {
			setLatitude(latitude);
		}

		Long parentId = (Long)attributes.get("parentId");

		if (parentId != null) {
			setParentId(parentId);
		}
	}

	/**
	* Returns the primary key of this merchant entry.
	*
	* @return the primary key of this merchant entry
	*/
	public long getPrimaryKey() {
		return _merchantEntry.getPrimaryKey();
	}

	/**
	* Sets the primary key of this merchant entry.
	*
	* @param primaryKey the primary key of this merchant entry
	*/
	public void setPrimaryKey(long primaryKey) {
		_merchantEntry.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the merchant ID of this merchant entry.
	*
	* @return the merchant ID of this merchant entry
	*/
	public long getMerchantId() {
		return _merchantEntry.getMerchantId();
	}

	/**
	* Sets the merchant ID of this merchant entry.
	*
	* @param merchantId the merchant ID of this merchant entry
	*/
	public void setMerchantId(long merchantId) {
		_merchantEntry.setMerchantId(merchantId);
	}

	/**
	* Returns the company ID of this merchant entry.
	*
	* @return the company ID of this merchant entry
	*/
	public long getCompanyId() {
		return _merchantEntry.getCompanyId();
	}

	/**
	* Sets the company ID of this merchant entry.
	*
	* @param companyId the company ID of this merchant entry
	*/
	public void setCompanyId(long companyId) {
		_merchantEntry.setCompanyId(companyId);
	}

	/**
	* Returns the creator user ID of this merchant entry.
	*
	* @return the creator user ID of this merchant entry
	*/
	public long getCreatorUserId() {
		return _merchantEntry.getCreatorUserId();
	}

	/**
	* Sets the creator user ID of this merchant entry.
	*
	* @param creatorUserId the creator user ID of this merchant entry
	*/
	public void setCreatorUserId(long creatorUserId) {
		_merchantEntry.setCreatorUserId(creatorUserId);
	}

	/**
	* Returns the creator user uuid of this merchant entry.
	*
	* @return the creator user uuid of this merchant entry
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getCreatorUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _merchantEntry.getCreatorUserUuid();
	}

	/**
	* Sets the creator user uuid of this merchant entry.
	*
	* @param creatorUserUuid the creator user uuid of this merchant entry
	*/
	public void setCreatorUserUuid(java.lang.String creatorUserUuid) {
		_merchantEntry.setCreatorUserUuid(creatorUserUuid);
	}

	/**
	* Returns the create date of this merchant entry.
	*
	* @return the create date of this merchant entry
	*/
	public java.util.Date getCreateDate() {
		return _merchantEntry.getCreateDate();
	}

	/**
	* Sets the create date of this merchant entry.
	*
	* @param createDate the create date of this merchant entry
	*/
	public void setCreateDate(java.util.Date createDate) {
		_merchantEntry.setCreateDate(createDate);
	}

	/**
	* Returns the modified date of this merchant entry.
	*
	* @return the modified date of this merchant entry
	*/
	public java.util.Date getModifiedDate() {
		return _merchantEntry.getModifiedDate();
	}

	/**
	* Sets the modified date of this merchant entry.
	*
	* @param modifiedDate the modified date of this merchant entry
	*/
	public void setModifiedDate(java.util.Date modifiedDate) {
		_merchantEntry.setModifiedDate(modifiedDate);
	}

	/**
	* Returns the type of this merchant entry.
	*
	* @return the type of this merchant entry
	*/
	public java.lang.String getType() {
		return _merchantEntry.getType();
	}

	/**
	* Sets the type of this merchant entry.
	*
	* @param type the type of this merchant entry
	*/
	public void setType(java.lang.String type) {
		_merchantEntry.setType(type);
	}

	/**
	* Returns the code of this merchant entry.
	*
	* @return the code of this merchant entry
	*/
	public java.lang.String getCode() {
		return _merchantEntry.getCode();
	}

	/**
	* Sets the code of this merchant entry.
	*
	* @param code the code of this merchant entry
	*/
	public void setCode(java.lang.String code) {
		_merchantEntry.setCode(code);
	}

	/**
	* Returns the title of this merchant entry.
	*
	* @return the title of this merchant entry
	*/
	public java.lang.String getTitle() {
		return _merchantEntry.getTitle();
	}

	/**
	* Sets the title of this merchant entry.
	*
	* @param title the title of this merchant entry
	*/
	public void setTitle(java.lang.String title) {
		_merchantEntry.setTitle(title);
	}

	/**
	* Returns the description of this merchant entry.
	*
	* @return the description of this merchant entry
	*/
	public java.lang.String getDescription() {
		return _merchantEntry.getDescription();
	}

	/**
	* Sets the description of this merchant entry.
	*
	* @param description the description of this merchant entry
	*/
	public void setDescription(java.lang.String description) {
		_merchantEntry.setDescription(description);
	}

	/**
	* Returns the organization of this merchant entry.
	*
	* @return the organization of this merchant entry
	*/
	public boolean getOrganization() {
		return _merchantEntry.getOrganization();
	}

	/**
	* Returns <code>true</code> if this merchant entry is organization.
	*
	* @return <code>true</code> if this merchant entry is organization; <code>false</code> otherwise
	*/
	public boolean isOrganization() {
		return _merchantEntry.isOrganization();
	}

	/**
	* Sets whether this merchant entry is organization.
	*
	* @param organization the organization of this merchant entry
	*/
	public void setOrganization(boolean organization) {
		_merchantEntry.setOrganization(organization);
	}

	/**
	* Returns the organization ID of this merchant entry.
	*
	* @return the organization ID of this merchant entry
	*/
	public long getOrganizationId() {
		return _merchantEntry.getOrganizationId();
	}

	/**
	* Sets the organization ID of this merchant entry.
	*
	* @param organizationId the organization ID of this merchant entry
	*/
	public void setOrganizationId(long organizationId) {
		_merchantEntry.setOrganizationId(organizationId);
	}

	/**
	* Returns the organization type of this merchant entry.
	*
	* @return the organization type of this merchant entry
	*/
	public java.lang.String getOrganizationType() {
		return _merchantEntry.getOrganizationType();
	}

	/**
	* Sets the organization type of this merchant entry.
	*
	* @param organizationType the organization type of this merchant entry
	*/
	public void setOrganizationType(java.lang.String organizationType) {
		_merchantEntry.setOrganizationType(organizationType);
	}

	/**
	* Returns the organization status of this merchant entry.
	*
	* @return the organization status of this merchant entry
	*/
	public int getOrganizationStatus() {
		return _merchantEntry.getOrganizationStatus();
	}

	/**
	* Sets the organization status of this merchant entry.
	*
	* @param organizationStatus the organization status of this merchant entry
	*/
	public void setOrganizationStatus(int organizationStatus) {
		_merchantEntry.setOrganizationStatus(organizationStatus);
	}

	/**
	* Returns the sites of this merchant entry.
	*
	* @return the sites of this merchant entry
	*/
	public boolean getSites() {
		return _merchantEntry.getSites();
	}

	/**
	* Returns <code>true</code> if this merchant entry is sites.
	*
	* @return <code>true</code> if this merchant entry is sites; <code>false</code> otherwise
	*/
	public boolean isSites() {
		return _merchantEntry.isSites();
	}

	/**
	* Sets whether this merchant entry is sites.
	*
	* @param sites the sites of this merchant entry
	*/
	public void setSites(boolean sites) {
		_merchantEntry.setSites(sites);
	}

	/**
	* Returns the recursable of this merchant entry.
	*
	* @return the recursable of this merchant entry
	*/
	public boolean getRecursable() {
		return _merchantEntry.getRecursable();
	}

	/**
	* Returns <code>true</code> if this merchant entry is recursable.
	*
	* @return <code>true</code> if this merchant entry is recursable; <code>false</code> otherwise
	*/
	public boolean isRecursable() {
		return _merchantEntry.isRecursable();
	}

	/**
	* Sets whether this merchant entry is recursable.
	*
	* @param recursable the recursable of this merchant entry
	*/
	public void setRecursable(boolean recursable) {
		_merchantEntry.setRecursable(recursable);
	}

	/**
	* Returns the country ID of this merchant entry.
	*
	* @return the country ID of this merchant entry
	*/
	public long getCountryId() {
		return _merchantEntry.getCountryId();
	}

	/**
	* Sets the country ID of this merchant entry.
	*
	* @param countryId the country ID of this merchant entry
	*/
	public void setCountryId(long countryId) {
		_merchantEntry.setCountryId(countryId);
	}

	/**
	* Returns the region ID of this merchant entry.
	*
	* @return the region ID of this merchant entry
	*/
	public long getRegionId() {
		return _merchantEntry.getRegionId();
	}

	/**
	* Sets the region ID of this merchant entry.
	*
	* @param regionId the region ID of this merchant entry
	*/
	public void setRegionId(long regionId) {
		_merchantEntry.setRegionId(regionId);
	}

	/**
	* Returns the longitude of this merchant entry.
	*
	* @return the longitude of this merchant entry
	*/
	public double getLongitude() {
		return _merchantEntry.getLongitude();
	}

	/**
	* Sets the longitude of this merchant entry.
	*
	* @param longitude the longitude of this merchant entry
	*/
	public void setLongitude(double longitude) {
		_merchantEntry.setLongitude(longitude);
	}

	/**
	* Returns the latitude of this merchant entry.
	*
	* @return the latitude of this merchant entry
	*/
	public double getLatitude() {
		return _merchantEntry.getLatitude();
	}

	/**
	* Sets the latitude of this merchant entry.
	*
	* @param latitude the latitude of this merchant entry
	*/
	public void setLatitude(double latitude) {
		_merchantEntry.setLatitude(latitude);
	}

	/**
	* Returns the parent ID of this merchant entry.
	*
	* @return the parent ID of this merchant entry
	*/
	public long getParentId() {
		return _merchantEntry.getParentId();
	}

	/**
	* Sets the parent ID of this merchant entry.
	*
	* @param parentId the parent ID of this merchant entry
	*/
	public void setParentId(long parentId) {
		_merchantEntry.setParentId(parentId);
	}

	public boolean isNew() {
		return _merchantEntry.isNew();
	}

	public void setNew(boolean n) {
		_merchantEntry.setNew(n);
	}

	public boolean isCachedModel() {
		return _merchantEntry.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_merchantEntry.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _merchantEntry.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _merchantEntry.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_merchantEntry.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _merchantEntry.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_merchantEntry.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new MerchantEntryWrapper((MerchantEntry)_merchantEntry.clone());
	}

	public int compareTo(
		com.cmc.service.merchant.model.MerchantEntry merchantEntry) {
		return _merchantEntry.compareTo(merchantEntry);
	}

	@Override
	public int hashCode() {
		return _merchantEntry.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.cmc.service.merchant.model.MerchantEntry> toCacheModel() {
		return _merchantEntry.toCacheModel();
	}

	public com.cmc.service.merchant.model.MerchantEntry toEscapedModel() {
		return new MerchantEntryWrapper(_merchantEntry.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _merchantEntry.toString();
	}

	public java.lang.String toXmlString() {
		return _merchantEntry.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_merchantEntry.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public MerchantEntry getWrappedMerchantEntry() {
		return _merchantEntry;
	}

	public MerchantEntry getWrappedModel() {
		return _merchantEntry;
	}

	public void resetOriginalValues() {
		_merchantEntry.resetOriginalValues();
	}

	private MerchantEntry _merchantEntry;
}